import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/pages/login'
import Main from '@/pages/index'
import Register from '@/pages/register'
import AssnDetails from '@/pages/assn_details'
import ActivityDetails from '@/pages/activity_details'
import WxBind from '@/pages/wx_bind'
import Search from '@/pages/search'
import AboutUs from '@/pages/about_us'
import UserBook from '@/pages/user_book'
import UserInfo from '@/pages/user_info'
import ActivityList from '@/pages/activity_list'
import ManageSociety from '@/pages/manage_society'
import MemberCenter from '@/pages/member_center'
import AddActivity from '@/pages/add_activity'
import AssnList from '@/pages/assn_list'
import KnowYou from '@/pages/know_you'
import SendSms from '@/pages/send_sms'
import SendEmail from '@/pages/send_email'
import PersonList from '@/pages/person_list'
import User from '@/pages/user'
import SmsServer from '@/pages/sms_server'
import PersonMemberShip from '@/pages/person_membership'
import PersonCheck from '@/pages/person_check'
import MemberShip from '@/pages/membership'
import JoinList from '@/pages/join_list'
import EmailServer from '@/pages/email_server'
import EditActivity from '@/pages/edit_activity'
import ApplyList from '@/pages/apply_list'
import FindPass from '@/pages/find_pass'
import SetNewPass from '@/pages/set_newpass'
import ChangePic from '@/pages/change_pic'
import Summary from '@/pages/summary'
import PhotoList from '@/pages/assn_photolist'
import StoreDetail from '@/pages/store_detail'
import UploadStructure from '@/pages/upload_structure'
import NotUse from '@/pages/not_use'
import SendState from '@/pages/send_state'
import HistoryState from '@/pages/history_state'
Vue.use(Router)

export default new Router({
  base: '/',
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'MainPage',
      component: Main,
      meta: {
        title: '首頁'
      }
    },
    {
      path: '/login',
      name: 'Login',
      component: Login,
      meta: {
        title: '登陸'
      }
    },
    {
      path: '/index',
      name: 'MainPage',
      component: Main,
      meta: {
        title: '首頁'
      }
    },
    {
      path: '/register',
      name: 'Register',
      component: Register,
      meta: {
        title: '注冊'
      }
    },
    {
      path: '/assn_details',
      name: 'AssnDetails',
      component: AssnDetails,
      meta: {
        title: '社團詳情'
      }
    },
    {
      path: '/activity_details',
      name: 'ActivityDetails',
      component: ActivityDetails,
      meta: {
        title: '活動詳情'
      }
    },
    {
      path: '/wx_bind',
      name: 'WxBind',
      component: WxBind,
      meta: {
        title: 'WeYouth'
      }
    },
    {
      path: '/search',
      name: 'Search',
      component: Search,
      meta: {
        title: '搜索'
      }
    },
    {
      path: '/about_us',
      name: 'AboutUs',
      component: AboutUs,
      meta: {
        title: '關於我們'
      }
    },
    {
      path: '/user_book',
      name: 'UserBook',
      component: UserBook,
      meta: {
        title: '用戶手冊'
      }
    },
    {
      path: '/user_info',
      name: 'UserInfo',
      component: UserInfo,
      meta: {
        title: '完善專屬會員資料'
      }
    },
    {
      path: '/activity_list',
      name: 'ActivityList',
      component: ActivityList,
      meta: {
        title: '活动列表'
      }
    },
    {
      path: '/manage_society',
      name: 'ManageSociety',
      component: ManageSociety,
      meta: {
        title: '管理社团'
      }
    },
    {
      path: '/member_center',
      name: 'MemberCenter',
      component: MemberCenter,
      meta: {
        title: '用户中心'
      }
    },
    {
      path: '/add_activity',
      name: 'AddActivity',
      component: AddActivity,
      meta: {
        title: '新增活動'
      }
    },
    {
      path: '/assn_list',
      name: 'AssnList',
      component: AssnList,
      meta: {
        title: '社团列表'
      }
    },
    {
      path: '/know_you',
      name: 'KnowYou',
      component: KnowYou,
      meta: {
        title: '更好了解您'
      }
    },
    {
      path: '/send_email',
      name: 'SendEmail',
      component: SendEmail,
      meta: {
        title: '编辑邮件'
      }
    },
    {
      path: '/send_sms',
      name: 'SendSms',
      component: SendSms,
      meta: {
        title: '編輯内容'
      }
    },
    {
      path: '/person_list',
      name: 'PersonList',
      component: PersonList,
      meta: {
        title: '成员列表'
      }
    },
    {
      path: '/user',
      name: 'User',
      component: User,
      meta: {
        title: '用戶信息'
      }
    },
    {
      path: '/sms_server',
      name: 'SmsServer',
      component: SmsServer,
      meta: {
        title: '短信服務'
      }
    },
    {
      path: '/person_membership',
      name: 'PersonMemberShip',
      component: PersonMemberShip,
      meta: {
        title: 'WeYouth個人會員特權'
      }
    },
    {
      path: '/person_check',
      name: 'PersonCheck',
      component: PersonCheck,
      meta: {
        title: '成员选择'
      }
    },
    {
      path: '/membership',
      name: 'MemberShip',
      component: MemberShip,
      meta: {
        title: 'WeYouth協會會員特權'
      }
    },
    {
      path: '/join_list',
      name: 'JoinList',
      component: JoinList,
      meta: {
        title: '報名列表'
      }
    },
    {
      path: '/email_server',
      name: 'EmailServer',
      component: EmailServer,
      meta: {
        title: '郵件服務'
      }
    },
    {
      path: '/edit_activity',
      name: 'EditActivity',
      component: EditActivity,
      meta: {
        title: '编辑活动'
      }
    },
    {
      path: '/apply_list',
      name: 'ApplyList',
      component: ApplyList,
      meta: {
        title: '申请列表'
      }
    },
    {
      path: '/find_pass',
      name: 'FindPass',
      component: FindPass,
      meta: {
        title: '找回密碼'
      }
    },
    {
      path: '/set_newpass',
      name: 'SetNewPass',
      component: SetNewPass,
      meta: {
        title: '設置新密碼'
      }
    },
    {
      path: '/change_pic',
      name: 'ChangePic',
      component: ChangePic,
      meta: {
        title: '上傳頭像'
      }
    },
    {
      path: '/summary',
      name: 'Summary',
      component: Summary,
      meta: {
        title: '简介管理'
      }
    },
    {
      path: '/photolist',
      name: 'PhotoList',
      component: PhotoList,
      meta: {
        title: '社團相冊'
      }
    },
    {
      path: '/store_detail',
      name: 'StoreDetail',
      component: StoreDetail,
      meta: {
        title: '店家詳情'
      }
    },
    {
      path: '/upload_structure',
      name: 'UploadStructure',
      component: UploadStructure,
      meta: {
        title: '請上傳本會架構'
      }
    },
    {
      path: '/not_use',
      name: 'NotUse',
      component: NotUse,
      meta: {
        title: '尚未开放'
      }
    },
    {
      path: '/send_state',
      name: 'SendState',
      component: SendState,
      meta: {
        title: '動態'
      }
    },
    {
      path: '/history_state',
      name: 'HistoryState',
      component: HistoryState,
      meta: {
        title: '歷史動態'
      }
    }
  ]
})
